package android.slc.appbase.ui.vd;

import android.slc.box.core.property.SimpleWrapObjectProperty;
import android.slc.box.core.virtual_android.Bundle;

/**
 * 基础的详细盒子vm
 *
 * @author slc
 * @date 2020-08-25 16:13
 */
public abstract class BaseDataChangeVmBox extends BaseAppVmBox {
    public final SimpleWrapObjectProperty<Object> notifyRefreshByGlobal = new SimpleWrapObjectProperty<>();

    /**
     * 通知刷新
     *
     * @param data
     */
    protected void notifyRefreshByGlobal(Object data) {
        if (data != null) {
            notifyRefreshByGlobal.setValuePlus(data);
        }
    }

    protected void onActivityResult(Bundle bundle) {

    }

    public abstract void refresh();

}
